﻿using Sys.Data;
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
using System.Text;

namespace Sys.Test
{
    class Program
    {
        static void Main(string[] args)
        {
            //SqlHelper helper = new SqlHelper();

            //string sqlString = @"select * from CheckTable";
            //SqlDataReader dr = helper.GetSqlDataReader(sqlString);
            //while (dr.Read())
            //{
            //    Console.WriteLine(dr["GroupCode"]);
            //}
            //Console.WriteLine("DataReader结束");

            //DataSet ds = helper.GetSqlDataSet(sqlString, "CheckTable");
            //if (ds != null)
            //{
            //    DataTable dt = ds.Tables["CheckTable"];
            //    if (dt != null)
            //    {
            //        foreach (DataRow row in dt.Rows)
            //        {
            //            Console.WriteLine(string.Format("{0},{1},{2},{3}", row["GroupCode"], row["Name"], row["ID"], row["myTime"]));
            //        }
            //    }
            //}
        }
    }
}
